<table>
    <tbody>
        <tr>
            <td width="160px"><?php echo $form->label('DeRH.request_no', 'Request no.'); ?></td>
            <td><?php echo $form->text('DeRH.request_no'); ?></td>
        </tr>
        <tr>
            <td><?php echo $form->label('DeRH.request_date', 'Request date'); ?></td>
            <td>
                From
                <?php echo $form->text('DeRH.request_date_start', array('size' => 10)); ?>
                To
                <?php echo $form->text('DeRH.request_date_end', array('size' => 10)); ?>
            </td>
        </tr>
        <tr>
            <td><?php echo $form->label('DeRH.due_date', 'Request Delivery date'); ?></td>
            <td>
                From
                <?php echo $form->text('DeRH.due_date_start', array('size' => 10)); ?>
                To
                <?php echo $form->text('DeRH.due_date_end', array('size' => 10)); ?>
            </td>
        </tr>
        <tr>
            <td><?php echo $form->label('DeRH.supplier_due_date', 'Actual Delivery date'); ?></td>
            <td>
                From
                <?php echo $form->text('DeRH.supplier_due_date_start', array('size' => 10)); ?>
                To
                <?php echo $form->text('DeRH.supplier_due_date_end', array('size' => 10)); ?>
            </td>
        </tr>
        <?php if ($session->read('Auth.User.Extend.from_supplier') != true) : ?>
        <tr>
            <td><?php echo $form->label('DeRH.supplier_id', 'Vendor'); ?></td>
            <td>
                <?php echo $form->select('DeRH.supplier_id', $suppliers); ?>
            </td>
        </tr>
        <?php endif; ?>
        <tr>
            <td><?php echo $form->label('DeRH.delivery_request_status_id', 'Status'); ?></td>
            <td><?php echo $form->select('DeRH.delivery_request_status_id', $statuses); ?></td>
        </tr>
        <tr>
            <td><?php echo $form->label('DeRH.request_by', 'Request by'); ?></td>
            <td><?php echo $form->text('DeRH.request_by', array('size' => 15)); ?></td>
        </tr>
        <tr>
            <td><?php echo $form->label('DeRH.end_user', 'End User'); ?></td>
            <td><?php echo $form->text('DeRH.end_user', array('size' => 15)); ?></td>
        </tr>
        <tr>
            <td><?php echo $form->label('DeRH.customer_document_no'); ?></td>
            <td><?php echo $form->text('DeRH.customer_document_no', array('size' => 20)); ?></td>
        </tr>
    </tbody>
</table>
<script type="text/javascript">
    $j(function() {
        $j.datesearchpicker("#DeRHRequestDate");
        $j.datesearchpicker("#DeRHDueDate");
        $j.datesearchpicker("#DeRHSupplierDueDate");
    })
</script>